#ifndef SUCCESS_PAGE_H
#define SUCCESS_PAGE_H

#include <Arduino.h>

const char successPage[] PROGMEM = R"=====(
<!DOCTYPE html>
<html>
<head>
  <title>成功</title>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <style>
    body {
      font-family: Arial, sans-serif;
      background-color: #f5f5f5;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
      margin: 0;
    }
    .success-container {
      background: white;
      padding: 2rem;
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      width: 400px;
      text-align: center;
    }
    h1 {
      color: #28a745;
      margin-bottom: 1.5rem;
    }
    a {
      display: inline-block;
      padding: 0.8rem 1.5rem;
      background-color: #007bff;
      color: white;
      text-decoration: none;
      border-radius: 4px;
      transition: background-color 0.2s;
    }
    a:hover {
      background-color: #0056b3;
    }
  </style>
</head>
<body>
  <div class="success-container">
    <h1>操作成功</h1>
    <p>操作已成功完成。</p>
    <a href="/">返回主页</a>
  </div>
</body>
</html>
)=====";

#endif
